package edu.xmut.decorator;

/**
 * @author 朔风
 * @date 2024-02-27 17:28
 */
public class Client {
    public static void main(String[] args) {

        ConcreteComponent concreteComponent = new ConcreteComponent();

        ConcreteDecoratorA concreteDecoratorA = new ConcreteDecoratorA();
        ConcreteDecoratorB concreteDecoratorB = new ConcreteDecoratorB();
        // 实现包装功能
        // concreteDecoratorA.setComponent(concreteComponent);
        // concreteDecoratorA.operation();

        // concreteDecoratorB.setComponent(concreteDecoratorA);
        concreteDecoratorB.operation();



    }
}
